package com.interest.time;

import java.util.TimerTask;

public abstract class MyTimerTask extends TimerTask {

	@Override
	public void run() {
		beforeTask();
		task();
		endTask();
	}

	protected void beforeTask() {

	}

	protected void endTask() {

	}

	public abstract void task();
}
